html {
  //750的设计稿中：1REM=100PX
  font-size: 100px;
}

html,
body,
#app {
  height: 100%;
  overflow: hidden;
}

#app {
  position: relative;
  margin: 0 auto;
  max-width: 750px;
}

/* 公共样式 */
@CW: #FFF;
@CH: rgba(255, 255, 255, .5);
@CG: #31c27c;

.text-clip {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

/* 背景 */
.bg-image,
.bg-mark {
  position: absolute;
  top: -.2rem;
  left: -.2rem;
  width: 120%;
  height: 120%;
}

.bg-image {
  z-index: -2;
  background: url('../images/myDream.jpg') no-repeat;
  background-size: cover;
  filter: blur(7px);
}

.bg-mark {
  z-index: -1;
  background: rgba(0, 0, 0, .5);
}

/* 头部 */
.header-box {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  padding: .3rem;
  width: 100%;
  height: 2rem;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;

  .music-btn {
    display: none;
    width: .7rem;
    height: .7rem;
    background: url('../images/music.svg') no-repeat;
    background-size: 100% 100%;

    &.move {
      animation: music-move 1s linear 0s infinite both;
    }
  }

  .base-info {
    position: relative;
    width: 6.1rem;

    .pic {
      position: absolute;
      top: 0;
      left: 0;
      width: 1.4rem;
      height: 1.4rem;
    }

    .title,
    .author {
      margin-left: 1.4rem;
      line-height: .7rem;
      font-size: .34rem;
      color: @CW;
      .text-clip;
    }

    .author {
      font-size: .3rem;
    }
  }
}

@keyframes music-move {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 歌词 */
.main-box {
  box-sizing: border-box;
  padding-top: 2rem;
  padding-bottom: 2.12rem;
  height: 100%;

  .lyric {
    position: relative;
    height: 100%;
    overflow: hidden;

    .wrapper {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      transform: translateY(0);
      transition: transform .3s;

      p {
        padding: 0 .2rem;
        height: 1rem;
        line-height: 1rem;
        text-align: center;
        font-size: .3rem;
        color: @CH;
        .text-clip;

        &.active {
          color: @CG;
          transition: color .3s;
        }
      }
    }
  }
}

/* 尾部 */
.footer-box {
  box-sizing: border-box;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0 .2rem;
  width: 100%;
  height: 2.12rem;
  overflow: hidden;

  .download {
    display: block;
    margin: 0 auto;
    width: 4.26rem;
    height: 1rem;
    line-height: 1rem;
    border-radius: .5rem;
    background: url('../images/sprite_play.png') no-repeat @CG;
    background-size: .8rem 7rem;
    background-position: .2rem -5.82rem;
    font-size: .36rem;
    color: @CW;
    text-align: center;
    text-indent: .43rem;

    &:active {
      background-color: darken(@CG, 10%);
    }
  }

  .progress {
    display: flex;
    justify-content: space-between;
    align-items: center;

    .already,
    .duration {
      width: 1rem;
      height: .92rem;
      line-height: .92rem;
      text-align: center;
      font-size: .24rem;
      color: @CH;
    }

    .back {
      position: relative;
      flex-grow: 1;
      height: .04rem;
      background: @CH;

      .rate {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 0;
        background: @CG;
        transition: width .1s;
      }
    }
  }
}

#myAudio{
  display: none;
}